<template>
  <transition name="fade">
    <slot></slot>
  </transition>
</template>

<script type="text/ecmascript-6">
export default {
  name: 'Fade'
}
</script>

<style lang="scss" scoped>
  .fade-enter, .fade-leave-to {
    opacity: 0;
  }
  .fade-enter-active, .fade-leave-active {
    transition: opacity .5s;
  }
</style>
